<template>
  <el-table-column
    :show-overflow-tooltip="!column.noTooltip&&true"
    :prop="column.prop"
    :label="column.label"
    :width="column.width"
    :min-width="column.minWidth"
    :fixed="column.fixed"
    :align="column.align || 'center'"
    :className="column.className"
    :resizable="isResizable"
    :sortable="column.sortable"
    :column-key="column.columnKey"
    :filters="column.filters"
    :filter-method="column.filterMethod">
    <template slot-scope="scope">
      <mes-cell :column="column" :row="scope.row"></mes-cell>
    </template>
  </el-table-column>
</template>

<script>
/**
 * @author liubaohui
 * @deprecated 新版本为mesColComp
 */
export default {
  name: 'MesColumn',
  props: {
    column: {
      type: Object,
      default() {
        return {}
      }
    },
  },
  computed: {
    // 是否可拖拽列宽
    isResizable() {
      if (typeof this.column.resizable === 'boolean') {
        return this.column.resizable
      }
      return this.column.fixed !== 'right';
    }
  },
}
</script>
